<template>
    <div class="logo" :style="{ color }">
        <svg-icon name="common/homelogo" />
        <div class="logo-text">
            <div class="text-container">
                <span class="main-text">吉居榭</span>
                <span class="sub-text">让家更美好</span>
            </div>
        </div>
    </div>
</template>

<script setup>
defineProps({
    color: {
        type: String,
        default: '#EDEFF6'
    }
})
</script>

<style lang="scss" scoped>
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    cursor: pointer;
    color: #4a604a;

    .svg-icon {
        width: 44px;
        height: 44px;
    }

    .logo-text {
        display: flex;
        .text-container {
            display: flex;
            flex-direction: column;
            
            .main-text {
                font-size: 24px;
                line-height: 1.2;
                letter-spacing: 0.1em;
            }
            
            .sub-text {
                font-size: 12px;
                font-weight: normal;
                width: 100%;
                text-align: justify;
                text-align-last: justify;
                letter-spacing: 0.1em;
            }
        }
    }
}
</style> 